package de.esk.fraunhofer.ECM_DatenbankOperation.Delete;

import de.esk.fraunhofer.XmlStr;
import de.esk.fraunhofer.XMLAnalyser.XML_WFWItem;

public class Delete_WFW {
	private XML_WFWItem wfw;
	
	private StringBuffer a= new StringBuffer(XmlStr.deleteWFW);
	
	public Delete_WFW(){
		
	}
	
	public Delete_WFW(XML_WFWItem wfw){
		this.wfw=wfw;
	}
	
	@Override
	public String toString(){
		   a.append(XmlStr.BEGIN_XML_TAG_WFW_ID)
				.append(wfw.getID())
			.append(XmlStr.END_XML_TAG_WFW_ID)
		
			.append(XmlStr.END_DELETE);			
			
			return new StringBuilder(XmlStr.root)
					.append(a)
					.append(XmlStr.end)
					.toString(); 	   	
	}
	
	public String resetAll(){
		   a.append(XmlStr.BEGIN_XML_TAG_WFW_ID)
				.append("all")
			.append(XmlStr.END_XML_TAG_WFW_ID)
		
			.append(XmlStr.END_DELETE);			
			
			return new StringBuilder(XmlStr.root)
					.append(a)
					.append(XmlStr.end)
					.toString(); 	 
		}

}
